package com.hifar.test.collectdata.pojo.VO;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author zhuWeiWei
 * @description 力学设备运行记录新增VO
 * @date 2025/2/11 17:12
 */
@Data
@ApiModel("力学设备运行记录批量新增VO")
public class DynamicsCollectDataBatchAddVO {

    @NotBlank(message = "设备id不能为空!")
    private String equipId;

    @ApiModelProperty("开始时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @ApiModelProperty("结束时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @ApiModelProperty("振动方向")
    private String directionPv;
    @ApiModelProperty("持续时间")
    private BigDecimal durationPv;
    @ApiModelProperty("振动量（g）")
    private BigDecimal vibrateValuePv;
    @ApiModelProperty("振动状态")
    private String vibarateStatusPv;
    @ApiModelProperty("时间间隔（秒）")
    @NotNull(message = "时间间隔不能为空!")
    @Min(value = 1, message = "时间间隔不能小于1")
    private Long recordInterval;


}
